package cn.donghuapian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 历史表
 * </p>
 *
 * @author hzw
 * @since 2024-09-10
 */
@Data
@TableName("t_history")
public class HistoryEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    /**
     * 主要人俗
     */
    private String person;

    /**
     * 所属国家
     */
    private String country;

    /**
     * 发生地点
     */
    private String address;

    /**
     * 分类
     */
    private String category;

    private String detail;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "HistoryEntity{" +
        "id = " + id +
        ", title = " + title +
        ", startTime = " + startTime +
        ", endTime = " + endTime +
        ", person = " + person +
        ", country = " + country +
        ", address = " + address +
        ", category = " + category +
        ", detail = " + detail +
        "}";
    }
}
